const route = (uri, view, name) => {
  return {
    path: uri,
    name: name || view,
    component: () => import(/* */ `@/views/${view}.vue`)
  };
};
export default [
  route("/login", "Login", "login"),
  route("/chat", "Chat", "chat"),
  {
    path: "*",
    redirect: "/login"
  }
];
